#include "ProtoBuf/Client2Game/heartbeat.pb.h"
#include "MessageCallBack/MessageCallBack.h"
#include "Logic/NetObject.h"
#include "WorldServer.h"

void heartbeatCallBack::process( void* extData,google::protobuf::Message* message )
{
	heartbeat* pheartbeat = dynamic_cast<heartbeat*>(message);
	NetObject_PTR pObject = g_WorldServer->getNetObject((ConectionID)extData);
	if (pObject)
	{
		pObject->heartbeatReponse();
	}
}
